<?php


namespace apps\marriage\core\service;


use apps\marriage\core\model\BrowseHistory;
use vm\com\BaseModel;
use vm\com\BaseService;

class BrowseHistoryService extends BaseService
{

    /**
     * @return BrowseHistory
     */
    protected function getModel()
    {
        return new BrowseHistory();
    }

    public function save(array $data)
    {
        $data['add_time'] = time();
        return $this->getModel()->replace(true)->save($data);
    }
}